<?php
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/** @var $block \Magento\UrlRewrite\Block\Selector */
?>
<div class="form-inline">
    <fieldset class="fieldset" data-container-for="entity-type-selector">
        <div class="field field-entity-type-selector">
            <label for="entity-type-selector" class="label"><?php /* @escapeNotVerified */ echo $block->getSelectorLabel() ?></label>
            <div class="control">
                <?php $url = $this->helper('Magento\Backend\Helper\Data')->getUrl('adminhtml/*/*')?>
                <select data-role="entity-type-selector" class="select" onchange="window.location = this.value;" id="entity-type-selector">
                <?php foreach ($block->getModes() as $mode => $label): ?>
                    <option <?php echo($block->isMode($mode) ? 'selected="selected" ' : '') ?>value="<?php /* @escapeNotVerified */ echo $url . $mode ?>"><?php /* @escapeNotVerified */ echo $label ?></option>
                <?php endforeach; ?>
                </select>
            </div>
        </div>
    </fieldset>
</div>
